import request from "@/utils/request";

/**
 *  登录页面操作
 * @param loginname 手机号
 * @param password 密码
 * @returns 
 */
export function login(loginname: string, password: string) {
    return request({
        url: '/api/user/login',
        method: 'POST',
        data: {
            loginname,
            password,
        },
    });
}